package com.nuc.seckill.enums;

/**
 * 消息队列枚举
 *
 * @author 石一歌
 * @date 2022-08-23 23:10
 */
public enum MqNodesEnum {
    /**
     * 删除缓存
     */
    delCache("delCache"),
    order("order");

    private String name;


    MqNodesEnum(String name) {
        this.name = name;
    }

    public static MqNodesEnum getEnumsByValue(String name) {
        MqNodesEnum[] arrays = values();
        for (MqNodesEnum type : arrays) {
            if (name.equals(type.getName())) {
                return type;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

